
<template>
	<view class="newsBox">
		<view class="newsBox-left">
			<text class="info">{{title}}</text>
			<text class="timer">{{times}}</text>
		</view>
		<view class="newsBox-right">
			<img :src="imgUrl" alt="">
		</view>

	</view>
</template>

<script>
	export default {
		name: "news",
		data() {
			return {
				title: " '五一'假期七座小型客车免费通行全国收费公路",
				times: "澎湃新闻 2022/4/27",
				imgUrl: "https://img-qn.51miz.com/preview/photo/00/01/54/79/P-1547932-2C0515C0.jpg"
			};
		}
	}
</script>

<style lang="less">
	.newsBox {
		width: 100%;
		height: 150rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.newsBox-right {
			width: 200rpx;
			height: 100%;

			img {
				width: 100%;
				height: 90%;
			}
		}

		.newsBox-left {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-around;
			width: 300rpx;
			height: 100%;

			.info {
				font-size: 25rpx;
				margin-right: 10rpx;
			}

			.timer {
				color: #666;
				font-size: 18rpx;
			}
		}
	}
</style>
